package com.haoliang.spring.context.config;

import com.haoliang.spring.context.model.BeanModel;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author zhaohaoliang
 * @Date 创建于 上午9:24 2019/3/10
 * @Description 请输入类的描述信息
 */
@Configuration
public class MainConfig {

    @Bean(name = "beanModel")
    public BeanModel getBeanModel(){
        return new BeanModel("zhaohaoliang","赵豪亮");
    }
}
